package com.itheima.stock.service;

import com.itheima.stock.common.domain.*;
import com.itheima.stock.pojo.StockBusiness;
import com.itheima.stock.vo.PageResult;
import com.itheima.stock.vo.R;

import javax.servlet.http.HttpServletResponse;
import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.Map;

public interface StockService {
    /**
     * 获取所有股票信息
     * @return
     */
    List<StockBusiness> getALlStockBusiness();

    R<List<InnerMarketDomain>> innerIndexAll();

    R<List<StockBlockDomain>> sectorAllLimit();

    R<List<StockUpdownDomain>> stockIncreaseLimit();

    R<PageResult<StockUpdownDomain>> stockPage(Integer page, Integer pageSize);

    R<Map> upDownCount();

    void stockExport(HttpServletResponse response, Integer page, Integer pageSize) throws UnsupportedEncodingException;

    R<Map> stockTradeVol4InnerMarket();

    R<Map> stockUpDownScopeCount();

    R<List<Stock4MinuteDomain>> stockScreenTimeSharing(String code);

    R<List<Stock4EvrDayDomain>> stockCreenDkLine(String code);

    R<List<OuterMarketDomain>> outerIndexAll();

    R<List<Map>> stockCodeAndName(String searchStr);

    R<StockBusinessDomain> stockBusiness(String code);

    R<List<Stock4EvrWeekDomain>> stockCreenWkLine(String code);

    R<StockNowDomain> stockNewData(String code);

    R<List<Stock4Limit10Domain>> stockDaySort(String code);
}
